@import "./reset.scss";
@mixin area {
    width: 960px;
    margin: 0 auto;
}

body,
html {
    background: #f4f4f4;
    font-size: inherit;
    color: #000;
}

// 导航nav
.navWrap {
    min-width: 769px;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #d1dae1;
    background: #fff;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    .nav {
        width: 1240px;
        height: 80px;
        margin: 0 auto;
        .log {
            width: 70px;
            height: 78px;
            margin-right: 100px;
            img {
                width: 65px;
                height: 65px;
                margin-top: 8px;
            }
        }
        .nav-list {
            .nav-ul {
                >li {
                    height: 78px;
                    line-height: 80px;
                    // padding: 0 18px;
                    float: left;
                }
                .b-red>a:nth-child(1) {
                    display: block;
                    height: 78px;
                    line-height: 80px;
                    font-size: 16px;
                    padding: 0 18px;
                    color: #000;
                }
            }
        }
        .login-box {
            height: 80px;
            line-height: 80px;
            margin-right: 20px;
            li {
                width: 40px;
                height: 25px;
                float: left;
                img {
                    width: 25px;
                    height: 25px;
                    margin-top: 30px;
                }
            }
        }
    }
}

.login a {
    color: #777;
    font-size: 16px;
}

// 二级菜单
.b-red:hover>a {
    border-bottom: 2px solid #e60012;
}

.hover {
    display: block !important;
}

.panel-collapse {
    display: none; //显示
    position: fixed;
    top: 80px;
    left: -0.5%;
    width: 101%;
    padding-bottom: 2em;
    background: #fff;
    font-size: 22px;
    padding-top: 1em;
    box-shadow: 0 5px 21px 0px #e4e4e4 inset;
    border-bottom: 4px solid #333;
}

.panel-collapse>div>div {
    position: relative;
    height: 94%;
    width: 12%;
    float: left;
    margin-left: 2%;
    margin-right: 2%;
}

.panel-collapse>div h6 {
    font-size: 1.09em;
    margin-bottom: .8em;
    display: inline-block;
    padding-bottom: 0.2em;
    border-bottom: 1px solid #fff;
    cursor: pointer;
}

.panel-collapse>div a {
    line-height: 1.1em;
    padding: .2em 0;
    font-size: 14px;
    cursor: pointer;
}

.navWrap .nav .nav-list .nav-ul>li {
    height: 26px;
    line-height: 26px;
    float: left;
}

.panel-collapse {
    padding-left: 7.5rem;
}

// main content
#bannerWrap:hover {
    .index-b-left,
    .index-b-right {
        display: block;
    }
}

#bannerWrap {
    height: 650px;
    position: relative;
    top: 80px;
    .banner {
        width: 100%;
        height: 550px;
        div {
            width: 100%;
            height: 550px;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
            position: absolute;
            left: 0;
            top: 0;
        }
    }
    .banner-ol {
        height: 1.8rem;
        position: absolute;
        top: 30rem;
        right: auto;
        width: auto;
        left: 50%;
        margin: 0 auto;
        padding: 0 0.1rem;
        background: rgba(255, 255, 255, .05);
        bottom: 10px;
        z-index: 15;
        padding-left: 0;
        list-style: none;
        text-align: center;
        // background-color: red;
        border-radius: 2px;
        transform: skewx(-30deg) translateX(-50%);
        -webkit-transform: skewx(-30deg) translateX(-50%);
        -moz-transform: skewx(-30deg) translateX(-50%);
        -ms-transform: skewx(-30deg) translateX(-50%);
        -o-transform: skewx(-30deg) translateX(-50%);
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        -ms-border-radius: 2px;
        -o-border-radius: 2px;
        li {
            float: left;
            display: block;
            height: 0.8rem;
            width: 0.3rem;
            border-radius: 2px;
            background: #999;
            border: 0;
            margin: auto 1rem;
            margin-top: 0.3rem;
            cursor: pointer;
            // vertical-align: top;
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            -ms-border-radius: 2px;
            -o-border-radius: 2px;
        }
    }
    .index-b-left,
    .index-b-right {
        display: none;
        position: absolute;
        width: 2.6rem;
        height: 3.6rem;
        top: 50%;
        margin-top: 1rem;
        z-index: 10;
        cursor: pointer;
    }
    .index-b-left {
        left: 3rem;
        top: 8rem;
        background: url(../images/icon2.png) no-repeat center/100%100%;
    }
    .index-b-right {
        right: 3rem;
        top: 8rem;
        background: url(../images/icon1.png) no-repeat center/100%100%;
    }
    .index-b-left:hover {
        background: url(../images/iconR.png) no-repeat center/100%100%;
    }
    .index-b-right:hover {
        background: url(../images/iconR1.png) no-repeat center/100%100%;
    }
}

.active {
    background: #e60012 !important;
}

// content 
body .peak-wrapper .content {
    width: 75%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section.section-index {
    position: relative;
    margin-bottom: 30px;
    padding-top: 30px;
    margin-top: -30px;
    visibility: visible;
    box-sizing: border-box;
}

.section.section-index .product-spots,
.section.section-index .product-spots .block-left,
.section.section-index .product-spots .block-right {
    height: 100%;
}

.news-spots,
.product-spots {
    padding: 0;
}

.grid-item {
    position: relative;
    float: left;
    margin-bottom: 30px;
    color: #585858;
}

.grid-item.card {
    padding: 0 15px;
    transition: all .15s linear 0s;
    -webkit-transition: all .15s linear 0s;
    -moz-transition: all .15s linear 0s;
    -o-transition: all .15s linear 0s;
    -ms-transition: all .15s linear 0s;
}

.grid-item,
.grid-sizer {
    width: 20%;
}

.card .card-wrapper {
    position: relative;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.card .card-cover {
    padding-top: 100%;
    overflow: hidden;
    position: relative;
}

.card-desc img {
    display: inline-block;
    margin-left: 8px;
}

.card .card-cover .card-cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
    min-height: 100%;
    max-width: auto;
    width: 100%;
}

.card:hover .card-cover .card-cover-wrapper {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.card .card-cover .card-cover-wrapper {
    transition: all .5s ease-in-out;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
}

.card .card-wrapper:hover {
    box-shadow: 0 0px 25px 0px #bbbbbb;
    transition: all .1s ease-in-out;
    -webkit-transition: all .1s ease-in-out 0s;
    -moz-transition: all .1s ease-in-out 0s;
    -o-transition: all .1s ease-in-out 0s;
    -ms-transition: all .1s ease-in-out 0s;
}

.card .card-desc {
    padding: 20px;
    // height: 85px;
    font-size: 20px;
}

.grid-item-xs-width4 {
    width: 50%;
}

.card .card-desc h2,
.card .card-desc h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #585858;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
}

.card .card-desc p {
    margin: 0;
    font-size: .6em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #999;
}

// --------------con2--------------------------------------------
.section.section-index {
    z-index: 1;
}

.section.section-index[data-ct="category"] {
    margin-bottom: 60px;
}

.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.nav-product {
    position: relative;
    text-align: center;
    font-size: 0;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-product li {
    width: 11.8%;
    border-right: 1px solid #e1e1e1;
    position: relative;
    margin-bottom: 2.5%;
    display: inline-block;
    color: #8f8c89;
}

.nav-product li a.nav-card-link {
    background: 0 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    text-indent: -3000em;
    z-index: 9;
}

.nav>li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.nav-product li .nav-icon {
    text-align: center;
    height: 60px;
}

.nav-product li .nav-icon img {
    position: relative;
    left: 34%;
    vertical-align: middle;
    max-width: 60%;
}

.nav-product li:first-child {
    border-left: 1px solid #e1e1e1;
}

.nav-product li h3 {
    font-size: 14px;
    margin: 0;
    text-align: center;
    color: #777777;
}

//显示
.nav-product li:hover a.nav-card-link {
    display: block;
}

.nav-product li:hover img {
    display: none;
}

.nav-product li:hover .icon-hover {
    display: block;
}

.icon-hover {
    display: none;
}

//-*-------------------------------------------------------------
//-+----------------------con3---------------------
// .card .card-cover .card-cover-wrapper {
//     position: absolute;
//     top: 0;
//     left: 0;
//     width: 100%;
//     height: 100%;
//     background-size: cover;
//     background-position: center center;
//     background-repeat: no-repeat;
//     height: 100%;
//     min-height: 100%;
//     max-width: auto;
//     width: 100%;
// }
.card .card-cover {
    overflow: hidden;
    position: relative;
}

.grid-item--width4 {
    width: 100%;
}

.grid-item--width2 {
    width: 44%;
}

.col-lg-6 {
    width: 50%;
    float: left;
}

//---------更多新品推荐
.section-index-footer {
    position: relative;
    font-size: 14px;
    line-height: 1.5em;
    color: #585858;
    margin: 20px 15px;
    margin-bottom: 4.29rem;
    text-align: center;
    visibility: visible;
    left: -17.5rem;
    top: 1rem;
    z-index: 0;
}

.section-index-footer a.link {
    font-size: 1em;
    background: #fff;
    color: #585858;
    padding: 2px 30px 2px 25px;
    border: 1px solid #d5d5d5;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    z-index: 10;
    background-image: url(../images/view-more.png);
    background-repeat: no-repeat;
    background-position: 90% 50%;
}

.section-index-footer .hr-shadow-left {
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 98%;
    left: 25%;
    height: 0.5px;
    width: 100%;
    background: #999;
    overflow: hidden;
}

//
// global-footer
#global-footer {
    height: 522px;
    visibility: visible;
    position: relative;
    background: #000;
    z-index: 99;
    color: #fff;
    a {
        color: #fff;
    }
    .bottom-logo {
        position: absolute;
        top: 0;
        width: 100%;
        text-align: center;
        background: #333;
        height: 222px;
        .bla {
            position: absolute!important;
            width: 100%;
            border: 0;
            height: 32px;
        }
        img {
            margin: 61px auto 62px;
            vertical-align: middle;
        }
    }
    .footer-wrapper {
        // position: fixed;
        position: absolute;
        bottom: 0;
        .honor {
            position: relative;
            font-size: 14px;
            padding: 2.5em 20px 5.5em;
            line-height: 2.3em;
            background: #000;
            color: #fff;
            // line-height: 50px;
            white-space: nowrap;
            width: 1280px;
            margin: 0 auto;
            min-height: 300px;
            box-sizing: border-box;
            a {
                color: #fff;
                display: block;
                cursor: pointer;
            }
        }
    }
}

#global-footer .honor .footer-bottom {
    white-space: normal;
    padding: 0 20px;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    border-top: 1px solid #3e3e3e;
    margin: 1.5em 0;
    font-size: 0.77em;
    line-height: 1.5em;
}

#global-footer .honor .footer-bottom a {
    float: left;
}

#global-footer .footer-wrapper {
    width: 100%;
    bottom: 0;
    background: #000;
}

#global-footer .honor .a-link-x2 a {
    float: left;
    width: 50%;
}

#global-footer .honor .a-link a {
    line-height: 1;
    margin: 0.6em 0;
}

#global-footer .honor .a-link {
    white-space: nowrap;
    margin-right: 1em;
    width: 9%;
    min-width: 5em;
}

.honor-label {
    font-weight: bold;
    margin-left: 9%;
    opacity: .8;
    margin-right: 5%;
}

.honor-label:first-child {
    margin-left: 0;
}

.honor-label-last p {
    padding-left: 2.5em;
}

#global-footer .honor .a-link-last {
    width: auto;
    float: right;
    margin-right: 0;
}

#global-footer .honor .a-link {
    white-space: nowrap;
    min-width: 5em;
}

.btn-weixin img,
.btn-weibo img,
.btn-cs img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 0.6rem;
}

.a-link-last {
    img {
        display: inline-block;
    }
}

.honor-label-last p:nth-child(2) {
    padding-left: 0;
}

#global-footer .honor .footer-bottom a {
    position: relative;
    display: inline-block;
    margin-right: 4em;
    margin-top: 1em;
}

#global-footer .honor a {
    color: #fff;
    cursor: pointer;
}

#global-footer .honor .footer-bottom a {
    position: relative;
    display: inline-block;
}

canvas {
    vertical-align: middle;
}